export class IdiomData {

    private static _ins: IdiomData = null;
    public static get ins(): IdiomData {
        if (IdiomData._ins == null) {
            IdiomData._ins = new IdiomData();
        }
        return IdiomData._ins;
    }

    private _idioms(): string[] {
        return [
            "人山人海",
            "色胆包天",
            "代人受过",
        ];
    }

    public getIdioms(): string[] {
        return this._idioms();
    }
    public getIdiomByIndex(index: number): string {
        if (index < 0) { return ""}
        let idioms = this._idioms();
        return idioms[index];
    }
    // public getIdiomsLength(): number {
    //     return this._idioms().length;
    // }
}